A Faster Pseudopolynomial Time Algorithm for Subset Sum

نویسندگان

  • Konstantinos Koiliaris
  • Chao Xu
چکیده

Given a multiset S of n positive integers and a target integer t, the subset sum problem is to decide if there is a subset of S that sums up to t. We present a new divide-and-conquer algorithm that computes all the realizable subset sums up to an integer u in Õ ( min{√nu, u, σ} ) , where σ is the sum of all elements in S and Õ hides polylogarithmic factors. This result improves upon the standard dynamic programming algorithm that runs in O(nu) time. To the best of our knowledge, the new algorithm is the fastest general algorithm for this problem. We also present a modified algorithm for cyclic groups, which computes all the realizable subset sums within the group in Õ ( min{√nm,m5/4} ) time, where m is the order of the group.

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

A Near-Linear Pseudopolynomial Time Algorithm for Subset Sum

Given a set Z of n positive integers and a target value t, the SubsetSum problem asks whether any subset of Z sums to t. A textbook pseudopolynomial time algorithm by Bellman from 1957 solves SubsetSum in time O(n t). This has been improved to O(nmaxZ) by Pisinger [J. Algorithms’99] and recently to Õ(√n t) by Koiliaris and Xu [SODA’17]. Here we present a simple and elegant randomized algorithm ...

متن کامل

SETH-Based Lower Bounds for Subset Sum and Bicriteria Path

Subset Sum and k-SAT are two of the most extensively studied problems in computer science, and conjectures about their hardness are among the cornerstones of fine-grained complexity. One of the most intriguing open problems in this area is to base the hardness of one of these problems on the other. Our main result is a tight reduction from k-SAT to Subset Sum on dense instances, proving that Be...

متن کامل

On Finding Maximum Cardinality Subset of Vectors with a Constraint on Normalized Squared Length of Vectors Sum

In this paper, we consider the problem of finding a maximum cardinality subset of vectors, given a constraint on the normalized squared length of vectors sum. This problem is closely related to Problem 1 from (Eremeev, Kel’manov, Pyatkin, 2016). The main difference consists in swapping the constraint with the optimization criterion. We prove that the problem is NP-hard even in terms of finding ...

متن کامل

An Exact Pseudopolynomial Algorithm for a Problem of Finding a Family of Disjoint Subsets

We consider a strongly NP-hard problem of finding a family of disjoint subsets with given cardinalities in a finite set of points from Euclidean space. The minimum of the sum over all subsets from required family of the sum of the squared distances from the elements of these subsets to their centers is used as a search criterion. The subsets centers are optimizable variables defined as the mean...

متن کامل

Dense Subset Sum May Be the Hardest

The Subset Sum problem asks whether a given set of n positive integers contains a subset of elements that sum up to a given target t. It is an outstanding open question whether the O∗(2n/2)-time algorithm for Subset Sum by Horowitz and Sahni [J. ACM 1974] can be beaten in the worst-case setting by a “truly faster”, O∗(2(0.5−δ)n)-time algorithm, with some constant δ > 0. Continuing an earlier wo...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2017